
#import <Foundation/Foundation.h>

#ifdef DEBUG
#define NSLog( fmt, ... ) \
[LanBLogger lanB_log: \
[[NSString stringWithUTF8String:__FILE__] lastPathComponent]\
method: [NSString stringWithUTF8String:__PRETTY_FUNCTION__] \
lineNr: [NSNumber numberWithInt:__LINE__] \
text: [NSString stringWithFormat:(fmt), ##__VA_ARGS__] \
]
#else
#define NSLog( fmt, ... )
#endif

@interface LanBLogger : NSObject

/*
 * fileName:类名文件, method:方法名, lineNr:行数, format,.. ：输出文本
 *
 */
+ (void)lanB_log:(NSString*)fileName method:(NSString*)method lineNr:(NSNumber*)lineNr text:(NSString *)formatStr;

@end
